package com.example.springbootasync.controller;

import com.example.springbootasync.services.AsyncServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class AsyncController {
    @Autowired
    AsyncServices asyncServices;
    @GetMapping("hello")
    public String hello(){
        asyncServices.hello();
        return "ok";
    }
}
